package com.yl.result;

import lombok.Getter;

@Getter
public class APIException extends RuntimeException{

    private int code;
    private String msg;

    public APIException(){
        this("接口错误");
    }

    public APIException(String msg){
        this(1001,msg);
    }
    public APIException(int code, String msg){
        this.code=code;
        this.msg=msg;
    }
}
